package com.lejin.item.service.impl;

import com.lejin.item.entity.CourseContents;
import com.lejin.item.mapper.CourseContentsMapper;
import com.lejin.item.service.ICourseContentsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author luminghua
 * @since 2022-04-20
 */
@Service
public class CourseContentsServiceImpl extends ServiceImpl<CourseContentsMapper, CourseContents> implements ICourseContentsService {
    @Autowired
    CourseContentsMapper contentsMapper;
    @Override
    public List<CourseContents> findAllContentsAndChapterByOid(Integer oid) {

        List<CourseContents> allContentsAndChapterByOid = contentsMapper.findAllContentsAndChapterByOid(oid);

        return allContentsAndChapterByOid;
    }
}
